$(document).ready(function()
    {
       $('.date-picker').datepicker( {
            changeYear: true,
            changeMonth: true,
            showWeek: true,
            showButtonPanel: true,
            dateFormat: 'yy-mm',
            onClose: function(dateText, inst) {
                var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
                var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
                $(this).datepicker('setDate', new Date(year, month, 1));
            }
        });
    });